var demoWin;
function launchDetectWithStartTime(sessID,startTime)
{
var promotion_id = 1513;
var playerWidth = 1000;
var playerHeight = 709;
var ref = "http://www.demosondemand.com:80/TrainingApp/player/index.asp?sessID=" + sessID;
ref += "&promotion_id=" + promotion_id
ref += "&startTime=" + startTime
//alert(ref)
if (typeof demoWin != "undefined") demoWin.close();
try {
var hWnd = window.open(ref, "demoWin", 'width=' + playerWidth + ',height=' + playerHeight + ',top=1,left=1');
hWnd.focus()
} catch(e) {
// window.open throws a catchable error if popup blocking software is installed.
// in this case, load the player into the already open window, and resize accordingly.
if (typeof window.opener != "undefined" && typeof window.opener.promotion_id != "undefined")
{
resizeWindow(playerWidth, playerHeight + 30)
} else {
resizeWindow(playerWidth, playerHeight + 200)
}
window.moveTo(0,0)
document.location = ref;
return false;
}
return false;
}